<?php 
$GLOBALS['Md'] = "MF93FL27";
$GLOBALS['Pd'] = "B";
require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
require_once($_SERVER['DOCUMENT_ROOT']."/Modules/MF93FL27/modconf.mex");
MYTCONN();

	form_pr('Mod_Benefict','','','post');
	// Show Title
	echo '<div class="title">Contas de Agentes</div>
	<div class="Line">
	<table width="100%" align="center" cellspacing="3">
  <tr>
    <td>N&uacute;mero</td>
    <td>Periodo</td>
    <td>Agente</td>
    <td colspan="2"><b>Estado</b></td>
	<td></td>
  </tr>
  <tr>
    <td>'; mn_field('text','ED','INVOICE','','8','6','',''); echo '</td>
    <td>De: '; mn_field('date','ED','TStart',date("Y-m-01"),'Mod_Benefict','8','',''); 
    echo 'a: '; mn_field('date','ED','TEnd','','Mod_Benefict','8','',''); echo '</td>
    <td> '; 
	$Qur = "SELECT sleID AS ID, sleName AS NAME FROM sellers";
	mn_field('select','ED','bttPartners','',$Qur,'','',''); echo '</td>
	<td colspan="2"> '; 
	$Qur = "SELECT sttFlag AS ID, stt_Word AS NAME FROM hd_sysstatus WHERE stt_Sistema = 22";
	mn_field('select','ED','bns_Status','',$Qur,' - ','',''); echo '</td>
	<td> '; mn_field('button','ED','bns_Query','Consultar','8','6','','" onclick="
			document.Mod_Benefict.action=\'Modules/CMX3458E/Lib/rs_agentaccounts.php\';
			subform(\'Mod_Benefict\',\'rsresults\');');
	echo ' | ';
	 mn_field('button','ED','bns_Query','Imprimir','8','6','','" onclick="
			'); echo '</td>
  </tr>
 </table>
</div>'; ?>
	<div id="rsresults"></div>
</form>